// http请求文件
import Vue from 'vue'
import VueResource from 'vue-resource'
Vue.use(VueResource)

// 路由http参数设置
Vue.http.options.emulateJSON = true
Vue.http.options.root = URL.Purl
Vue.http.options.xhr = {
  withCredentials: true
}
Vue.http.options.crossOrigin = true


/**
 * 拦截器
 */
Vue.http.interceptors.push(function(request, next) {
  next();
  return
})
